<?php

header( "Access-Control-Allow-Origin:*" );

include '../ITemp.php';
$OP = $_POST['OP'];

$CMD = array(
	'OP' => $OP
);

$RESP = array(
	'TEMP' => $SENSOR['env_temp'],
	'RH' => $SENSOR['env_rh']
);

if($CMD['OP'] == 'hello'){
	echo json_encode($RESP);
}else {
	echo "error";
}
?>
